import {api} from "@/utils/request";
import type { number } from "echarts";


// 根据parentId获取下级节点
export const FindCategoryByParentId = (parentId:number) => {
    return api({
      url: "product/category/findByParentId/"+parentId,
      method: 'get',
    })
  }

// 导出excel
export const ExportCategoryData  = () => {
    return api({
      url: "product/category/exportData",
      method: 'get',
      responseType: 'blob'  // // 这里指定响应类型为blob类型,二进制数据类型，用于表示大量的二进制数据
    })
  }
// 导入excel到数据库
export const ImportCategoryData  = (data:any) => {
  return api({
    url: "product/category/mportData",
    method: 'post',
    data: data,
  })
}






